package com.ysl.fairy_could_class.common.exception;

public class BizException extends RuntimeException {

    private int code;//错误码

    private String msg;//打印错误消息
    //构造方法
    public BizException(int code,String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
